package net.hn.hnms.biz.plan.domain;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@TableName("execution_tunnel_repair")
public class ExecutionTunnelRepair extends BaseModel implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String tunnelExecutionId;


    @ApiModelProperty(value = "巷道修复计划id")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String tunnelRepairId;

    @ApiModelProperty(value = "修复日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date executionDate;

    @ApiModelProperty(value = "修复描述")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String describe;

    @ApiModelProperty(value = "修复人")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String executorUserName;

    @ApiModelProperty(value = "修复进度")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double executionProgress;

    @ApiModelProperty(value = "问题及原因")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String reason;

    @ApiModelProperty(value = "纠正措施")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String correctiveAction;

    @ApiModelProperty(value = "修复质量")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String repairQuality;

    @ApiModelProperty(value = "备注")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String remark;


}
